

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>修改一条记录</title>
    </head>
    <body>
        修改一条学生记录<br><br>
        <form name="inputForm" action="${pageContext.request.contextPath}/student/studentUpdateSave" method="post">
            <input type="hidden" name="stuId" id="stuId" value="${student.stuId}"/>
            <table>
                    <tr>
                        <td>姓名</td>
                        <td><input type="text" name="stuName" size=15 value="${student.stuName}"></td>
                    </tr>
                    <tr>
                        <td>班级</td>
                        <td><input type="text" name="stuClass" size=15 value="${student.stuClass}"></td>
                    </tr>
                    <tr>
                        <td>专业</td>
                        <td><input type="text" name="stuSpecial" size=15 value="${student.stuSpecial}"></td>
                    </tr>
                    <tr>
                        <td>年龄</td>
                        <td><input type="text" name="stuAge" size=15 value="${student.stuAge}"></td>
                    </tr>
                    <tr>
                        <td>性别</td>
                        <td>
                            <c:choose>
                                  <c:when test="${student.stuSex=='男'}">
                                    <input type="radio" name="stuSex" value="男" checked>男
                                    <input type="radio" name="stuSex" value="女">女
                                </c:when>
                                <c:when test="${student.stuSex=='女'}">
                                    <input type="radio" name="stuSex" value="男">男
                                    <input type="radio" name="stuSex" value="女" checked>女
                                </c:when>
                            </c:choose>
                        </td>
                    </tr>
                    <tr>
                        <td>密码</td>
                        <td><input type="password" name="stuPassword"  size=15 value="${student.stuPassword}"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" name="submit" value="提交" >
                            <input type="reset" name="reset" value="重置" >
                        </td>
                    </tr>
            </table>
        </form>
    </body>
</html>